package com.mallcai.bigdata.ladon.service.export.impl.handler;

import com.mallcai.bigdata.ladon.service.export.impl.ExportContext;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * described :文件保存至本地后就算是完成了,这一步的Order是最大值,后续操作都属于PostHandler
 *
 * @author CaKeDou
 * @date 2019-09-26 21:52
 * Modify:
 */
@Component
@Order
public class CompleteHandler extends AbstractExportPreHandler {

    @Override
    public void preInternal(ExportContext exportContext) {
        exportContext.setDownloadUrl(exportContext.getFilePath());
        exportContext.setCompleted(true);
    }

}
